package com.ss.baseinfo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ss.baseinfo.dao.ProfessionalDao;
import com.ss.baseinfo.pojo.ProfessionalInfo;
import com.ss.baseinfo.service.ProfessionalService;

/**
 * 专业管理
 * @author Administrator
 */
@Service("professionalService")
public class ProfessionalServiceImpl implements ProfessionalService {
	@Autowired
	private ProfessionalDao dao;
	@Override
	public void add(ProfessionalInfo info) throws Exception {
		// TODO Auto-generated method stub
		dao.add(info);
	}

	@Override
	public boolean update(ProfessionalInfo info) throws Exception {
		// TODO Auto-generated method stub
		int r=dao.update(info);
		return r>0?true:false;
	}

	@Override
	public List<ProfessionalInfo> query(ProfessionalInfo info) throws Exception {
		// TODO Auto-generated method stub
		return dao.query(info);
	}

	@Override
	public ProfessionalInfo getOneById(String id) throws Exception {
		// TODO Auto-generated method stub
		return dao.getOneById(id);
	}
	
}
